// 自动生成模板UmsMemberReceiveAddress
package biz

import "github.com/go-kratos/kratos/v2/log"

// umsMemberReceiveAddress表 结构体  UmsMemberReceiveAddress
type UmsMemberReceiveAddress struct {
	Id            *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                               //id
	MemberId      *int    `json:"memberId" form:"memberId" gorm:"comment:member_id;column:member_id;size:19;"`                //member_id
	Name          *string `json:"name" form:"name" gorm:"comment:收货人姓名;column:name;size:255;"`                                //收货人姓名
	Phone         *string `json:"phone" form:"phone" gorm:"comment:电话;column:phone;size:64;"`                                 //电话
	PostCode      *string `json:"postCode" form:"postCode" gorm:"comment:邮政编码;column:post_code;size:64;"`                     //邮政编码
	Province      *string `json:"province" form:"province" gorm:"comment:省份/直辖市;column:province;size:100;"`                   //省份/直辖市
	City          *string `json:"city" form:"city" gorm:"comment:城市;column:city;size:100;"`                                   //城市
	Region        *string `json:"region" form:"region" gorm:"comment:区;column:region;size:100;"`                              //区
	DetailAddress *string `json:"detailAddress" form:"detailAddress" gorm:"comment:详细地址(街道);column:detail_address;size:255;"` //详细地址(街道)
	Areacode      *string `json:"areacode" form:"areacode" gorm:"comment:省市区代码;column:areacode;size:15;"`                     //省市区代码
	DefaultStatus *bool   `json:"defaultStatus" form:"defaultStatus" gorm:"comment:是否默认;column:default_status;"`              //是否默认
}

// TableName umsMemberReceiveAddress表 UmsMemberReceiveAddress自定义表名 ums_member_receive_address
func (UmsMemberReceiveAddress) TableName() string {
	return "ums_member_receive_address"
}

type UmsMemberReceiveAddressRepo interface {
}

type UmsMemberReceiveAddressUsecase struct {
	repo UmsMemberReceiveAddressRepo
	log  *log.Helper
}

func NewUmsMemberReceiveAddressUsecase(repo GreeterRepo, logger log.Logger) *UmsMemberReceiveAddressUsecase {
	return &UmsMemberReceiveAddressUsecase{repo: repo, log: log.NewHelper(logger)}
}
